package com.szh.mysobproject.viewmodel.app

import com.szh.mysobproject.http.ServiceCreator
import com.szh.mysobproject.http.request.api.ArticleApi

/**
 * @author : create by  szh
 * @date : 2022/7/8 9:56
 * @desc :文章获取
 */

object ArticleNetwork {

    private val articleApi = ServiceCreator.create<ArticleApi>()

    suspend fun loadUserArticleList(userId: String, page: Int) =
        articleApi.loadUserArticleList(userId, page)
}